<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page isELIgnored="false"%>
<%@ include file="../common/taglibs.jsp"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<title>POS收单运营管理平台</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<title>整改商户数据</title>
<link rel="icon" href="favicon.ico" type="image/x-icon" />
<!-- 当前页面样式 -->
<link rel="stylesheet" href="<s:url value="/css/common.css"/>" />
<!-- 当前页面样式 END -->
<script type="text/javascript"
	src="<c:url value="/js/jquery-1.3.2.js" />"></script>
<script type="text/javascript" src="<c:url value="/js/common.js" />"></script>
<script language="javascript" type="text/javascript"
	src="<c:url value="/js/My97DatePicker/WdatePicker.js"/>"></script>
<script type='text/javascript' src='<s:url value="/dwr/engine.js"/>'></script>
<script type='text/javascript'
	src='<s:url value="/dwr/interface/MccQuery.js"/>'></script>
<script type="text/javascript">






function exportSubmit(obj){
	
	var createDate = $("#createDate").val();
	var batchNo = $("#batchNo").val();
	if(!createDate){
		alert("请填写商户号导入的日期");
		return false;
	} 
	if(!batchNo){
		alert("请填写商户号导入的批次号");
		return false;
	}  
	
	$("#exportBlackListForm").attr("action","<%=basePath%>/reviseData/exportReviseMerinfo.ct");
	$(obj).attr("disabled","true");
	$("#exportBlackListForm").submit();
	
	
}
	
$(document).ready(function(){
	
	$('#importReviselist').click(function(){
		$("#exportBlackListForm").attr("action","<%=basePath%>/reviseData/importReviseJsp.ct");
		$("#exportBlackListForm").submit();
		$(this).attr("disabled","true");
	});
	
	$('#sub').click(function(){
		$("#exportBlackListForm").attr("action","<%=basePath%>/reviseData/queryRevise.ct");
		$("#exportBlackListForm").submit();
 		$(this).attr("disabled","true"); 
	});
	$('#exportReviselist').click(function(){
		$("#exportBlackListForm").attr("action","<%=basePath%>/reviseData/exportReviselist.ct");
		$("#exportBlackListForm").submit();
		$(this).attr("disabled","true");
	});
	
});	
	

	
</script>



</head>

<body>

	<s:form id="exportBlackListForm" action="" method="post"
		theme="simple">
		<table class="tb"> 
			<tbody>
				<tr class="tb-line">
					<td class="tb-td" colspan="6"><div class="tb-h2">POS收单运营管理平台</div></td>
				</tr>
				<tr class="tb-line">
					<td class="tb-td" colspan="6"><div class="tb-h3">银联整改商户数据</div></td>
				</tr>
				

               <tr class="tb-line">
			 <td align="right" class="tb-td" style="width:110px;">
				        	<div class="tb-h4">导入日期：</div>
			            </td>
            <td class="tb-td">
                <label class="tb-input-mini">
                 <s:textfield id="createDate" name="searchCondition.createDate" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',readOnly:true,wdate:true,errDealMode:0});" cssClass="queryWidth"/></label>
                <code class="asterisk">*</code>
            </td>     
			   
             <td align="right" class="tb-td" style="width:110px;">
				        	<div class="tb-h4">导入批次号：</div>
			            </td>
            <td class="tb-td">
                <label class="tb-input-mini">
                <s:textfield id="batchNo" name="searchCondition.batchNo" cssClass="queryWidth" /></label>
                <code class="asterisk">*</code>
            </td>						
		</tr>
		
		<tr class="tb-line">
           		 <td class="tb-td line-submit" align="right" colspan="7">
                <label class="tb-input-submit"><input type="button" value="查询" id="sub"/></label>
				<label class="tb-input-submit"><s:reset value="取 消" /></label> 
				<label class="tb-input-submit"><input type="button" value="批量导入" id="importReviselist"/></label>	
				 <label class="tb-input-submit">
                    <s:if 
					 test="#request.searchRsList != null && #request.searchRsList.size>0">
					   		<input id="szPower" type="button"
							value="导 出" onclick="return exportSubmit(this);"/>
					   
					</s:if>
					<s:else>
					 	<input id="szPower" disabled="disabled" value="导  出" type="button" /> 
					</s:else>
                </label>
				</td>
				</tr>
					<s:if
					test="#request.searchRsList != null && #request.searchRsList.size>0">
					<tr class="tb-line">
						<td class="tb-td paging" colspan="7"><page:pageCount
								max_pages="11" totalPage="${requestScope.totalPage}"
								currentPage="${requestScope.currentPage}"
								action="${rootPath}/reviseData/queryRevise.ct?currentPage=" />

						</td>
					</tr>
				</s:if>
			</table>
		<div class="big-tb">
    <table class="tb" style="width: 100%;">
				<thead>
            	<tr class="tb-line">
                <th class="tb-th" colspan="26"><div class="tb-h3">商户整改数据查询列表</div></th>
            	</tr>
					 <tr class="tb-line bg-gray">
					 <th class="tb-th">序号</th>	
					 <th class="tb-th">银联商户</th>	
					 <th class="tb-th">终端号</th>
					 <th class="tb-th">43域</th>
					  <th class="tb-th">商户简称</th>
					  <th class="tb-th">32域</th>
					  <th class="tb-th">MCC</th>
					  <th class="tb-th">近三个月是否有交易</th>
					  <th class="tb-th">直属代理商</th>
					  <th class="tb-th">一级代理商</th>
					  <th class="tb-th">所属机构</th>
					  <th class="tb-th">所属大区</th>
					  <th class="tb-th">营业执照号</th>
					  <th class="tb-th">法人名称</th>
					  <th class="tb-th">省</th>
					  <th class="tb-th">市</th>
					  <th class="tb-th">县</th>
					  <th class="tb-th">商户地址</th>
					  <th class="tb-th">实际经营地址</th>
					  <th class="tb-th">商户联系人姓名</th>
					  <th class="tb-th">商户联系人电话</th>
					  <th class="tb-th">进件(审核)日期</th>
					  <th class="tb-th">是否冻结</th>
					  <th class="tb-th">冻结日期</th>
					  <th class="tb-th">导入日期</th>
					  <th class="tb-th">批次号</th>
					 
					</tr>
				</thead>
				<tbody>
					 	<s:iterator value="#request.ReviseList" status="stat" id="rev">
							<tr class="tb-line" >
							<td class="tb-td"><s:property value="#rev.rowNum"/></td>
							<td class="tb-td"><s:property value="#rev.mchtCd"/></td>
							<td class="tb-td"><s:property value="#rev.termId"/></td>
							<td class="tb-td"><s:property value="#rev.name"/></td>
							<td class="tb-td"><s:property value="#rev.nameBusi"/></td>
							<td class="tb-td"><s:property value="#rev.ucBcCd32"/></td>
							<td class="tb-td"><s:property value="#rev.mccCd18"/></td>
							<td class="tb-td"><s:property value="#rev.isDeal"/></td>
							<td class="tb-td"><s:property value="#rev.upAgent"/></td>
							<td class="tb-td"><s:property value="#rev.oneAgent"/></td>
							<td class="tb-td"><s:property value="#rev.orgNum"/></td>
							<td class="tb-td"><s:property value="#rev.companyid"/></td>
							<td class="tb-td"><s:property value="#rev.busiLiceNo"/></td>
							<td class="tb-td"><s:property value="#rev.certif"/></td>
							<td class="tb-td"><s:property value="#rev.provCd"/></td>
							<td class="tb-td"><s:property value="#rev.cityCd"/></td>
							<td class="tb-td"><s:property value="#rev.areaCd"/></td>
							<td class="tb-td"><s:property value="#rev.regAddr"/></td>
							<td class="tb-td"><s:property value="#rev.ucBcCd32Zh"/></td>
							<td class="tb-td"><s:property value="#rev.contactName"/></td>
							<td class="tb-td"><s:property value="#rev.contactPhoneno"/></td>
							<td class="tb-td"><s:property value="#rev.applDate"/></td>
							<td class="tb-td"><s:property value="#rev.status"/></td>
							<td class="tb-td"><s:property value="#rev.recUpdTs"/></td>
							<td class="tb-td"><s:property value="#rev.createDate"/></td>
							<td class="tb-td"><s:property value="#rev.batchNo"/></td>
							
							
						</s:iterator>
				</tbody>
			</table>
			</div>
		</s:form>
	<s:if test="#request.info_request !=null">
	<script language="javascript">
	    alert("${request.info_request}");
	    </script>
	</s:if>	
</body>
</html>
